package com.schoolcardinfo.beans;

public class Id_Admin {
	private int adminId;//管理员编号
	private String password;//管理员密码
	
	@Override
	public String toString() {
		return "Id_Admin [adminId=" + adminId + ", password=" + password + "]";
	}

	public int getAdminId() {
		return adminId;
	}

	public void setAdminId(int adminId) {
		this.adminId = adminId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Id_Admin(int adminId, String password) {
		super();
		this.adminId = adminId;
		this.password = password;
	}

	public Id_Admin() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + adminId;
		result = prime * result + ((password == null) ? 0 : password.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Id_Admin other = (Id_Admin) obj;
		if (adminId != other.adminId)
			return false;
		if (password == null) {
			if (other.password != null)
				return false;
		} else if (!password.equals(other.password))
			return false;
		return true;
	}
}
